package com.jmz.apt.api.dao;

import com.jmz.apt.api.Provider.TimeTygpGroupItemsProvider;
import com.jmz.apt.api.Provider.TimeTygpGroupProvider;
import com.jmz.apt.api.entity.dbEntity.JmzAdminUser;
import com.jmz.apt.api.entity.dbEntity.TimeTygpGroup;
import com.jmz.apt.api.entity.dbEntity.TimeTygpGroupItems;
import com.jmz.apt.api.message.request.Condition;
import com.jmz.apt.api.message.request.Query;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;
import org.springframework.dao.DataAccessException;

import java.util.List;

/**
 * Created by fanglexue on 2019/10/23.
 */

@Mapper
public interface TygpGroupItemsDao {

    @SelectProvider(type = TimeTygpGroupItemsProvider.class, method="select")
    public List<TimeTygpGroupItems> findGroupItems(String columns, List<Condition> condition, Query query);

    @SelectProvider(type = TimeTygpGroupItemsProvider.class, method="getCount")
    public Integer count(List<Condition> condition);

    @SelectProvider(type = TimeTygpGroupItemsProvider.class, method="insert")
    public Integer saveGroupItems(TimeTygpGroupItems timeTygpGroupItems) throws DataAccessException;

    @UpdateProvider(type = TimeTygpGroupItemsProvider.class, method="update")
    public Boolean updateUpdateGroupItems(TimeTygpGroupItems timeTygpGroupItems) throws DataAccessException;

    @SelectProvider(type = TimeTygpGroupItemsProvider.class, method="selectOne")
    public TimeTygpGroup findGroupItemsOne(TimeTygpGroupItems timeTygpGroupItems);


}
